package hehe.test;

import java.awt.Graphics;

import javax.swing.JFrame;

public class Paint {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		new PaintFrame().launchFrame();
	}

}

class PaintFrame extends JFrame {
	@Override
	public void paint(Graphics g) {
		super.paint(g);
		g.drawLine(0, 0, 100, 100);
	}
	public void launchFrame() {
		setBounds(0, 0, 400, 400);
		setVisible(true);
	}
}